import {
  getRequest,
  postRequest
} from './request.js'


export const pointsShare= (params) => {
  return postRequest('Poster/getPoster', params)
}

//授权
export const decryptWeRun = (params) => {
  return postRequest('login/decryptWeRun', params)
}
//补单订单
export const doReSign = (params) => {
  return postRequest('Wechat/signpay', params)
}


//设置步数
export const doMotion = (params) => {
  return postRequest('index/member_motion', params)
}

//设置用药
export const doMedication= (params) => {
  return postRequest('index/member_medication', params)
}

//提交血糖信息

export const subBlood = (params) => {
  return postRequest('index/blood', params)
}

//血糖记录
export const blood_measure_list = (params)=>{
  return postRequest('index/blood_measure', params)
}

//删除信息
export const sugarDel= (params)=>{
  return postRequest('index/sugarDel', params)
}

//获取测试记录
export const getTask= (params)=>{
  return postRequest('index/check_task', params)
}

export const login_phone = (params) => {
  return postRequest('login/do_login_phone', params)
}

//活动列表
export const activeList = (params) => {
  return postRequest('index/activity', params)
}

//活动列表(全部)
export const active_list = (params) => {
  return postRequest('index/activity_list', params)
}

//活动详情
export const activity_info = (params) => {
  return getRequest('index/activity_info', params)
}

//提交活动信息
export const  doactivity = (params) => {
  return getRequest('index/doactivity', params)
}


export const getNfc = (params) => {
  return getRequest('index/doNfc', params)
}

export const message_list= (params) => {
  return postRequest('Message/messageListing', params)
}

export const message_info= (params) => {
  return postRequest('Message/readMessage', params)
}



//用户登陆
export const login = (params) => {
  return postRequest('login/dologin', params)
}

//修改信息
export const user_login=(params)=>{
	return postRequest('login/user_login', params)
}


//获取用户信息
export const getUser = (params) => {
  return postRequest('user/index', params)
}

//获取手机号
export const getPhone = (params) =>{
  return postRequest('login/getPhone', params)
}


export const dopay = (params) => {
  return getRequest('login/dopay', params)
}
//充值协议
export const agreement = (params) => {
  return getRequest('Index/agreement', params)
}

//商品列表
export const goodsList = (params) => {
  return getRequest('Shop/goods_lists', params)
}

//商品分类信息
export const goodsCate = (params) => {
  return getRequest('Shop/shop_cate', params)
}

//商品详情
export const goods_info = (params) => {
  return getRequest('shop/goodsInfo', params)
}

//获取购物车数量
export const goodsCar_num = (params) => {
  return getRequest('Car/goodsCarNum', params)
}


//获取商品属性
export const goodsAttr = (params) => {
  return getRequest('Shop/goods_attr', params)
}

//加入购物车
export const goodsCar = (params) =>{
  return postRequest('car/add', params)
}

//购物车列表信息
export const carList = (params) =>{
  return postRequest('car/listing', params)
}

//修改购物车
export const caredit = (params) =>{
  return postRequest('car/edit_new', params)
}

//删除购物车
export const cardel = (params) =>{
  return postRequest('car/del', params)
}

//购物车结算
export const previewcar = (params)=>{
  return postRequest('order/previewcar', params)
}

//订单预览
export const preView = (params)=>{
  return postRequest('order/preview', params)
}

//订单绑定设备
export const orderDevice = (params)=>{
  return postRequest('orderlist/orderDevice', params)
}

//提交订单
export const orderSubmit = (params)=>{
  return postRequest('Ordersubmit/submit', params)
}

//续费提交订单
export const leaseOrder = (params)=>{
  return postRequest('Ordersubmit/lease_order', params)
}

//立即支付
export const orderpay = (params)=>{
  return postRequest('Wechat/orderpay', params)
}

//订单信息
export const order_info = (params)=>{
  return postRequest('Wechat/order_info', params)
}

//订单支付
export const orderpay2 = (params)=>{
  return postRequest('Wechat/orderpay2', params)
}

//(用户)订单列表信息
export const listIng = (params)=>{
  return postRequest('Orderlist/listing', params)
}

export const StoragelistIng = (params)=>{
  return postRequest('Orderlist/listing_storage', params)
}

export const listIngNew = (params)=>{
  return postRequest('Orderlist/listing', params)
}

export const queryorders= (params)=>{
  return postRequest('Orderlist/queryorder', params)
}

//(商户)订单列表信息
export const Shoplist= (params)=>{
  return postRequest('Orderlist/Shoplisting', params)
}

//订单取消
export const orderCancel = (params)=>{
  return postRequest('Orderlist/cancel_order', params)
}

//订单详情
export const orderInfo = (params)=>{
  return postRequest('Orderlist/info', params)
}

//续租
export const payPlease = (params)=>{
  return postRequest('Order/payPlease', params)
}

//订单确认
export const orderReceipt = (params)=>{
  return postRequest('Orderlist/confirmReceipt', params)
}

//订单归还
export const  BackOrder= (params)=>{
  return postRequest('Orderlist/back_order', params)
}

//订单发货
export const  sendOrder= (params)=>{
  return postRequest('Orderlist/sendOrder', params)
}


//充值列表
export const docashList = (params)=>{
  return postRequest('user/docashList', params)
}

//立即充值
export const dorecharge = (params)=>{
  return postRequest('user/recharge', params)
}

//用户消费记录
export const moneylog_list = (params)=>{
  return postRequest('Moneylog/moneylog_list', params)
}

//消费记录
export const settlog_list = (params)=>{
  return postRequest('Moneylog/settlog_list', params)
}

//优惠券列表
export const coupon_list = (params)=>{
  return postRequest('Coupon/couponLists', params)
}

//获取公告信息
export const getNotice = (params)=>{
  return postRequest('user/articleSting', params)
}

//我的收益
export const getUserIncome = (params)=>{
  return postRequest('user/UserIncome', params)
}

//商户资金记录
export const moneyshoplog_list= (params)=>{
  return postRequest('Moneylog/moneyshoplog', params)
}

//提现提交
export const Pdocash= (params)=>{
  return postRequest('User/docash', params)
}

//商户提现信息
export const cash_limit = (params)=>{
  return postRequest('User/cash_limit_info', params)
}

//提现记录
export const docashLog = (params)=>{
  return postRequest('User/docash_log', params)
}

//收入记录
export const IncomeLog = (params)=>{
  return postRequest('moneylog/IncomeLog', params)
}

//优惠券信息
export const couponList= (params)=>{
  return postRequest('Shop/coupon_list', params)
}


//领取优惠券
export const drawCoupon= (params)=>{
  return postRequest('Coupon/draw_coupon', params)
}

//故事信息
export const  NewList = (params)=>{
  return postRequest('index/new_list', params)
}

//故事信息
export const  NewInfo = (params)=>{
  return postRequest('index/new_info', params)
}

//获取地区
export const  areaList = (params)=>{
  return postRequest('Address/area_list', params)
}

//添加收货地址
export const  PostAddress = (params)=>{
  return postRequest('Address/add', params)
}

//收货地址列表
export const  AddressList = (params)=>{
  return postRequest('Address/listing', params)
}

//修改收获地址
export const  AddressDefault = (params)=>{
  return postRequest('Address/is_default', params)
}

//删除地址
export const  Addressdel = (params)=>{
  return postRequest('Address/del', params)
}


//获取等级权益
export const  getLevel= (params)=>{
  return postRequest('user/get_level', params)
}
//请上传认证信息
export const  getauth= (params)=>{
  return postRequest('login/auth', params)
}


//权益卡信息
export const wxPayLevel=(params)=>{
  return postRequest('user/do_level', params)
}

//收藏商品
export const addgoodsCollect=(params)=>{
  return postRequest('Collect/goods_add_collect', params)
}

//收藏店铺
export const getCollect=(params)=>{
  return postRequest('Collect/shop_collect', params)
}

//店铺收藏列表
export const shopList=(params)=>{
  return postRequest('Collect/shop_list', params)
}

//收藏商品
export const  collectList=(params)=>{
  return getRequest('Collect/goods_collect', params)
}
//删除收藏
export const  delCollect=(params)=>{
  return getRequest('Collect/del_collect', params)
}

export const shopMoreList=(params)=>{
  return postRequest('shop/shop_list', params)
}

//积分记录
export const pointlog_list=(params)=>{
  return postRequest('Points/signlog', params)
}

//积分规则
export const aggregateInfo=(params)=>{
  return getRequest('index/aggregate_info', params)
}

//积分商品信息
export const  pointsList=(params)=>{
  return getRequest('Points/points_list', params)
}

//商品详情
export const pointsInfo=(params)=>{
  return getRequest('Points/points_info', params)
}


//获取签到规则
export const SignRule=(params)=>{
  return getRequest('Points/points_rule', params)
}

//点击签到
export const doSignRule=(params)=>{
  return getRequest('Points/signPoints', params)
}

//点击兑换
export const DochangeGoods=(params)=>{
  return getRequest('Points/changeGoods', params)
}

//获取兑换记录
export const changeGoodslog=(params)=>{
  return getRequest('Points/points_change_list', params)
}
//签到记录
export const pointsLog=(params)=>{
  return postRequest('Points/points_log', params)
}

//确认收货
export const  confirm_Points=(params)=>{
  return postRequest('Points/confirmOReceipt', params)
}

//兑换订单详情
export const orderGoodslog=(params)=>{
  return getRequest('Points/order_points', params)
}

//获取平台信息
export const getAbout=(params)=>{
  return getRequest('user/flat_about', params)
}


//获取平台信息
export const shopInfo=(params)=>{
  return getRequest('shop/shop_info', params)
}

//获取图片信息
export const shopPoster=(params)=>{
  return getRequest('Poster/getPoster', params)
}

//确认收货
export const  confirm_receipt=(params)=>{
  return postRequest('Orderlist/confirmOReceipt', params)
}


//员工管理
export const staff_list=(params)=>{
  return postRequest('user/staff_list', params)
}

//分享店铺信息
export const  ShopJoinInfo=(params)=>{
  return postRequest('shop/shopInfo', params)
}

//分享店铺信息
export const  RecomMenberLog=(params)=>{
  return postRequest('user/recom_menber_log', params)
}

//分享店铺信息
export const  doJoinStaff=(params)=>{
  return postRequest('user/JoinStaff', params)
}

export const  editStaff=(params)=>{
  return postRequest('user/edit_staff', params)
}

//会员权益
export const member_level=(params)=>{
  return getRequest('user/member_level', params)
}

//团队管理
export const groupInfo=(params)=>{
  return getRequest('user/member_group', params)
}

//bannber 
export const bannnerList=(params)=>{
  return getRequest('index/bannner_list', params)
}

//提交店铺资料
export const  doSelectShop=(params)=>{
  return postRequest('user/SelectShop', params)
}

//修改基本信息
export const memberset=(params)=>{
  return postRequest('user/base_member', params)
}


//店铺资料信息
export const  selectShopList=(params)=>{
  return postRequest('index/selectShopList', params)
}


//店铺投资
export const  dopayShop=(params)=>{
  return postRequest('user/dopayShop', params)
}

//用户余额信息
export const  userAccount=(params)=>{
  return postRequest('user/userAccount', params)
}

//用户余额信息
export const  alisend=(params)=>{
  return postRequest('index/alisend', params)
}

//用户余额信息
export const  Index=(params)=>{
  return postRequest('Index/index', params)
}

//获取店铺信息
export const  doShopList=(params)=>{
  return postRequest('Index/ShopList', params)
}

//订单派发
export const  doorderSend=(params)=>{
  return postRequest('Index/orderSend', params)
}

//商品分类信息
export const  doGoodsCate=(params)=>{
  return postRequest('Shop/goodsCate', params)
}


//商品分类信息
export const  SGoodsList=(params)=>{
  return postRequest('Shop/goodsStorage', params)
}

//下架商品
export const GoodsUp=(params)=>{
  return postRequest('Shop/GoodsUp', params)
}



//商品添加
export const  doGoodsAdd=(params)=>{
  return postRequest('Shop/goodsAdd', params)
}

//删除商品
export const  orderDel=(params)=>{
  return postRequest('Shop/orderDel', params)
}

//获取商品信息
export const  goodsCateList=(params)=>{
  return getRequest('Shop/shop_cate_list', params)
}

//获取商品信息
export const  goodsCateLists=(params)=>{
  return getRequest('Shop/cate_goods_list', params)
}



//获取商品信息
export const  goodsEdit=(params)=>{
  return getRequest('Shop/goodsedit', params)
}

//设置店铺信息
export const setShopInfo=(params)=>{
  return getRequest('Shop/setShopInfo', params)
}

//获取评论列表信息
export const  evaluate_list=(params)=>{
  return getRequest('shop/evaluateListing', params)
}

//获取评论列表信息
export const  doGoodsStock=(params)=>{
  return getRequest('shop/goodsStock', params)
}

export const  goodsShopCate=(params)=>{
  return getRequest('shop/shop_shop_cate', params)
}

//修改商品状态
export const doeditStatus=(params)=>{
  return getRequest('shop/shop_goods_status', params)
}

// 修改等级
export const dolevelSend=(params)=>{
  return postRequest('user/levelSend', params)
}

//获取信息
export const getorderdetail=(params)=>{
  return postRequest('order/orderdetail', params)
}

//评价信息
export const  doEvaluate=(params)=>{
  return postRequest('Orderlist/addEvaluate', params)
}

//更新信息
export const  version=(params)=>{
  return postRequest('Index/version', params)
}

//授权
export const doAuthorize=(params)=>{
  return postRequest('Authorize/do_auth', params)
}

export const  do_auth=(params)=>{
  return postRequest('Authorize/do_auth', params)
}

export const  do_Certify=(params)=>{
  return postRequest('Login/UserCertify', params)
}

//反馈信息
export const dofeedback=(params)=>{
  return postRequest('Index/feedback', params)
}

//商务合作
export const doAddfeedback=(params)=>{
  return postRequest('user/add_feedback', params)
}

//账户注销
export const updateMember=(params)=>{
  return postRequest('user/update_member', params)
}

//绑定信息
export const bindinglog=(params)=>{
  return postRequest('user/bindinglog', params)
}
//绑定信息
export const dobinding=(params)=>{
  return postRequest('user/dobinding', params)
}

//解除绑定
export const delbinding=(params)=>{
  return postRequest('user/delbinding', params)
}
//孵化列表信息
export const dollList=(params)=>{
  return postRequest('Shop/dollList', params)
}

//孵化信息
export const doll_info=(params)=>{
  return postRequest('Shop/doll_info', params)
}

//提交加速
export const dospeedups=(params)=>{
  return postRequest('user/dospeedups', params)
}

//申请团长
export const applyGroup=(params)=>{
  return postRequest('user/apply_group', params)
}

//银行卡列表
export const bankList=(params)=>{
  return postRequest('user/bank_list', params)
}

//用户银行卡列表
export const AddMemberBank=(params)=>{
  return postRequest('user/add_bank_list', params)
}

//用户认证
export const UserAauth=(params)=>{
  return postRequest('user/auth', params)
}


//用户银行卡列表
export const memberBankList=(params)=>{
  return postRequest('user/member_bank_list', params)
}

//删除用户银行卡列表
export const delMemberBank=(params)=>{
  return postRequest('user/delMemberBank', params)
}

//搜索商品
export const search_goods=(params)=>{
  return postRequest('shop/search_goods', params)
}

export const search_order=(params)=>{
  return postRequest('orderlist/search_order', params)
}

//孵化中
export const search_doll=(params)=>{
  return postRequest('orderlist/doll', params)
}

//退款订单
export const applyOrder=(params)=>{
  return postRequest('orderlist/apply_order_sales', params)
}



export const bindingGoods = (params) => {
  return postRequest('Index/binding_goods', params)
}
export const bindingDetail= (params) => {
  return postRequest('Index/binding_detail', params)
}

export const bindings = (params) => {
  return postRequest('Index/bindings', params)
}

//检查报告
export const reportLog= (params) => {
  return postRequest('Index/reportLog', params)
}


//检查报告
export const userReport= (params) => {
  return postRequest('user/report', params)
}








